import request from '@/utils/request'

//获取调拨列表
export function GetAssetAllotList(params) {
  return request({
    url: '/Interface/GetAssetAllocationList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//添加调拨
export function AddAssetsAllot(params) {
  return request({
    url: '/Interface/SaveAssetAllocation',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询调拨详细
export function getAssetsAllotDetail(params) {
  return request({
    url: '/Interface/GetAssetAllocationSubList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//获取可调拨的资产列表(用于添加)
export function getAssetsCanAllot(params) {
  return request({
    url: '/Interface/GetNotDisposed',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//调拨作废
export function AllotAssetsRevoke(params) {
  return request({
    url: '/Interface/SaveAllocationClose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
